package com.example.project_springboot.config;

import com.example.project_springboot.controller.LoginController;
import org.dom4j.io.SAXReader;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CommonConfig {
    @Bean //第三方创建bean对象交给ioc容器注册
    public SAXReader saxReader(LoginController loginController){
        System.out.println(loginController);
        return new SAXReader();
    }
}
